<?php    
    $c = new Criteria();
    $roles = RolPeer::doSelect($c);
    if ($permiso->getRolId()) {
        $rol_selected = $permiso->getRolId();
    } else if (count($dimensiones)>0){
        $rol_selected = $roles[0]->getId();
    } else {
        $rol_selected = "";
    }

    echo select_tag('permiso[rol_id]',objects_for_select($roles,'getId','getNombre',$rol_selected,'include_custom=Seleccione'));
    
?>
